package com.newcoder.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author yjh
 * @since 2024-12-04 10:03:25
 */
@Data
@Accessors(chain = true)
@ApiModel(value = "Comment对象", description = "")
public class Comment implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("评论id")
    private Integer id;

    @ApiModelProperty("评论人的id")
    private Integer userId;

    @ApiModelProperty("评论类别：1代表帖子,2评论")
    private Integer entityType;

    @ApiModelProperty("被评论的帖子id，或被评论的评论id")
    private Integer entityId;

    @ApiModelProperty("被评论人的id")
    private Integer targetId;

    private String content;

    private Integer status;

    private Date createTime;
}
